Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update example service and timer in manpage #5

Merged
merged 2 commits into from
Feb 14, 2022
Merged

Conversation

baodrate
Copy link
Owner

This does four things:

  • Set the "IOSchedulingClass" and "CPUSchedulingPolicy" to "idle" (we are a background task and should never block the system in any way)
  • Add "--quiet" to the exec line (at best, backups are fire and forget)
  • Mention our own man page in the "Documentation=" directive (good style)
  • Move the [Install] section to the bottom (convention)

Credit: @bdaase
From: baodrate/snap-sync/pull/100

bdaase and others added 2 commits January 30, 2021 21:33
This does four things:
- Set the "IOSchedulingClass" and "CPUSchedulingPolicy" to "idle" (we are a background task and should never block the system in any way)
- Add "--quiet" to the exec line (at best, backups are fire and forget)
- Mention our own man page in the "Documentation=" directive (good style)
- Move the [Install] section to the bottom (convention)
as suggested by wesbarnett

this avoids the service from possibly being CPU-starved
(see https://unix.stackexchange.com/questions/340283/using-and-understanding-systemd-scheduling-related-options-in-a-desktop-context)

IOSchedulingClass, however, was kept.

These options match `[email protected]` on Arch Linux
@baodrate
Copy link
Owner Author

Replaced CPUSchedulingPolicy with Nice per original PR review

@baodrate baodrate merged commit 630e0ea into main Feb 14, 2022
@baodrate baodrate deleted the docs/systemd-service branch February 14, 2022 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants